package model.components.links.comparator;

import java.util.Comparator;

import model.components.links.link.Link;

public class LinkNumberComparator implements Comparator< Link >
{
	@Override
	public int compare( Link aLink, Link bLink )
	{
		Integer aLinkNumber = Integer.valueOf( aLink.getNumber() );
		Integer bLinkNumber = Integer.valueOf( bLink.getNumber() );
		
		return aLinkNumber.compareTo( bLinkNumber );
	}
}
